# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>

pkgname=websvn
pkgver=2.8.1
pkgrel=1
pkgdesc="subversion web interface"
arch=(any)
url="https://websvnphp.github.io/"
license=('GPL')
depends=()
backup=(srv/http/websvn/.htaccess)
source=("$pkgname-$pkgver.tar.gz::https://github.com/websvnphp/websvn/archive/$pkgver.tar.gz")
sha256sums=('06038a940dd45397ac94120a10d31c629dc3c51af6f9583d7b2326ce5c3d730b')

package() {
  local _instdir="$pkgdir"/srv/http
  mkdir -p ${_instdir}
  cp -ra "$srcdir"/websvn-$pkgver ${_instdir}/websvn
  echo "deny from all" >${_instdir}/websvn/.htaccess
}
